<?php
/*
 * Created on Oct 14, 2008
 *
 * Display titles.
 */
function showTitles() {
	
	$db = dbconnect();
	
	$sql = "SELECT * FROM titles";
	
	$result = $db->query($sql);
	
	if ( $result ) {
		
	    while($row = $result->fetchRow()){
	    	$id = $row[0];
	    	$name = $row[1];
	    	echo "            <option value=\"$id\">$name</option>\n";
	    }
	}
	$db->disconnect(); 
}
?>
